package com.stylefeng.guns.rest.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 购物车表
 * </p>
 *
 * @author ruiyifeng123
 * @since 2018-05-20
 */
@TableName("wz_user_cart")
public class WzUserCart extends Model<WzUserCart> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "user_cart_id", type = IdType.AUTO)
    private Long userCartId;
    /**
     * 会员ID
     */
    @TableField("user_code")
    private Long userCode;
    /**
     * 商品ID
     */
    @TableField("product_id")
    private Long productId;
    /**
     * 数量
     */
    private Integer quantity;
    /**
     * 创建时间
     */
    @TableField("create_time")
    private Date createTime;


    public Long getUserCartId() {
        return userCartId;
    }

    public void setUserCartId(Long userCartId) {
        this.userCartId = userCartId;
    }

    public Long getUserCode() {
        return userCode;
    }

    public void setUserCode(Long userCode) {
        this.userCode = userCode;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    protected Serializable pkVal() {
        return this.userCartId;
    }

    @Override
    public String toString() {
        return "WzUserCart{" +
        "userCartId=" + userCartId +
        ", userCode=" + userCode +
        ", productId=" + productId +
        ", quantity=" + quantity +
        ", createTime=" + createTime +
        "}";
    }
}
